package com.ytjj.qmyx.users.model.response;

import com.ytjj.qmyx.users.model.UsersAddress;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @Description 收货地址
 *
 * @Version 1.0
 * 
 */

@Data
public class AddressResponse {

    /**
     * id
     */
    private Integer id;

    /**
     * 联系人名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 联系人手机号
     *
     * @mbg.generated
     */
    private String tel;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Integer sort;

    /**
     * 省
     *
     * @mbg.generated
     */
    private String province;

    /**
     * 市
     *
     * @mbg.generated
     */
    private String city;

    /**
     * 区
     *
     * @mbg.generated
     */
    private String area;

    /**
     * 详细地址
     *
     * @mbg.generated
     */
    private String address;

    /**
     * 默认地址 1：默认 0：不默认
     *
     * @mbg.generated
     */
    private Byte status;

    /**
     * 发布时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    public AddressResponse() {

    }

    public AddressResponse(UsersAddress usersAddress) {
        BeanUtils.copyProperties(usersAddress, this);
    }
}
